package mybag;

import java.util.Scanner;

public class Bacon extends Pizza {
	Scanner input = new Scanner(System.in);

	@Override
	public void choose() {
		System.out.print("请选择要制作的披萨(1.培根披萨 2.海鲜披萨);");
		int num = input.nextInt();
		System.out.println("请输入培根克数：");
		setWeight(input.nextDouble());
		System.out.print("请输入披萨的大小：");
		this.size = input.nextDouble();
		System.out.println("请输入披萨价格：");
		this.price = input.nextDouble();
		if (num == 1) {
			System.out.println("培根披萨");
		} else {
			return;
		}
		System.out.print("价格：" + this.price);
		System.out.print("大小：" + this.size);
		System.out.print("培根克数" + getWeight());
	}
}
